import request from '/@/utils/request';
// 订单列表接口
export function orderIndex(params: object) {
	return request({
		url: '/admin/order/index',
		method: 'post',
		data: params,
	});
}
// 订单编辑接口
export function orderEdit(params: object) {
	return request({
		url: '/admin/order/orderediting',
		method: 'post',
		data: params,
	});
}
// 下载
export function orderDownload(params: object) {
	return request({
		url: '/admin/order/download',
		method: 'post',
		data: params,
	});
}
export function supplFeeList(params: object) {
	return request({
		url: '/admin/order/supplementFeeList',
		method: 'post',
		data: params,
	});
}
// 获取补费订单下拉列表
export function getorderlist(params: object) {
	return request({
		url: '/admin/order/getorderlist',
		method: 'post',
		data: params,
	});
}
// 获取服务类型
export function gettypelist(params: object) {
	return request({
		url: '/admin/order/gettypelist',
		method: 'post',
		data: params,
	});
}
// 补费接口-add
export function supplementfee(params: object) {
	return request({
		url: '/admin/order/supplementfee',
		method: 'post',
		data: params,
	});
}
// 修改补费订单接口-edit
export function suppFeeUpdate(params: object) {
	return request({
		url: '/admin/order/supplementFeeUpdate',
		method: 'post',
		data: params,
	});
}
// 跟进记录-详情
export function followUpDetail(params: object) {
	return request({
		url: '/admin/salesleads/followUpDetail',
		method: 'post',
		data: params,
	});
}
// 添加跟进记录
export function addfollowup(params: object) {
	return request({
		url: '/admin/salesleads/addfollowup',
		method: 'post',
		data: params,
	});
}
// 材料列表
export function materialList(params: object) {
	return request({
		url: '/admin/material/index',
		method: 'post',
		data: params,
	});
}
// 发货交期-列表
export function deliveryTime(params: object) {
	return request({
		url: '/admin/deliveryTime/index',
		method: 'post',
		data: params,
	});
}
// 发货交期-新增
export function addDeliveryTime(params: object) {
	return request({
		url: '/admin/deliveryTime/add',
		method: 'post',
		data: params,
	});
}
// 发货交期-删除
export function delDeliveryTime(params: object) {
	return request({
		url: '/admin/deliveryTime/del',
		method: 'post',
		data: params,
	});
}
// 增值服务-列表
export function addedservicesIndex(params: object) {
	return request({
		url: '/admin/addedservices/index',
		method: 'post',
		data: params,
	});
}
// 增值服务-新增
export function addedservicesAdd(params: object) {
	return request({
		url: '/admin/addedservices/add',
		method: 'post',
		data: params,
	});
}
// 增值服务-编辑
export function addedservicesEdit(params: object) {
	return request({
		url: '/admin/addedServices/updateServices',
		method: 'post',
		data: params,
	});
}
// 增值服务-删除
export function addedservicesDel(params: object) {
	return request({
		url: '/admin/addedservices/del',
		method: 'post',
		data: params,
	});
}
// 材料管理-新增
export function materialAdd(params: object) {
	return request({
		url: '/admin/material/add',
		method: 'post',
		data: params,
	});
}
// 材料管理-删除
export function materialDel(params: object) {
	return request({
		url: '/admin/material/del',
		method: 'post',
		data: params,
	});
}
// 材料管理-详情
export function materialDetail(params: object) {
	return request({
		url: '/admin/material/detail',
		method: 'post',
		data: params,
	});
}
// 材料管理-编辑
export function materialEdit(params: object) {
	return request({
		url: '/admin/material/update',
		method: 'post',
		data: params,
	});
}
// 删除文件
export function deleteossfiles(params: object) {
	return request({
		url: '/admin/upload/deleteossfiles',
		method: 'post',
		data: params,
	});
}

export function addQuotation(params: object) {
	return request({
		url: '/admin/salesLeads/addQuotation',
		method: 'post',
		data: params,
	});
}

// 发货时间管理-列表
export function deliveryTimeList(params: object) {
	return request({
		url: '/admin/deliverytime/index',
		method: 'post',
		data: params,
	});
}

// 发货时间管理-新增
export function addDeliveryTimelist(params: object) {
	return request({
		url: '/admin/deliverytime/add',
		method: 'post',
		data: params,
	});
}

// 发货时间管理-修改
export function updateDeliveryTimelist(params: object) {
	return request({
		url: '/admin/deliverytime/update',
		method: 'post',
		data: params,
	});
}
// 财务管理
export function financeIndex(params: object) {
	return request({
		url: '/admin/finance/index',
		method: 'post',
		data: params,
	});
}

// 货币管理
export function currencyIndex(params: object) {
	return request({
		url: '/admin/currency/index',
		method: 'post',
		data: params,
	});
}
// 货币管理-新增
export function currencyAdd(params: object) {
	return request({
		url: '/admin/currency/add',
		method: 'post',
		data: params,
	});
}
// 货币管理-编辑
export function currencyEdit(params: object) {
	return request({
		url: '/admin/currency/updatecurrencys',
		method: 'post',
		data: params,
	});
}
// 货币管理-删除
export function currencyDel(params: object) {
	return request({
		url: '/admin/currency/del',
		method: 'post',
		data: params,
	});
}
// 货品订单-详情
export function orderDetail(params: object) {
	return request({
		url: '/admin/order/orderDetail',
		method: 'post',
		data: params,
	});
}
// 供应商列表
export function suppliers(params: object) {
	return request({
		url: '/admin/suppliers/index',
		method: 'post',
		data: params,
	});
}
// 供应商列表-新增
export function suppliersAdd(params: object) {
	return request({
		url: '/admin/suppliers/add',
		method: 'post',
		data: params,
	});
}
// 供应商列表-编辑
export function suppliersEdit(params: object) {
	return request({
		url: '/admin/suppliers/update',
		method: 'post',
		data: params,
	});
}